package cn.xuchunh.guava.collection;

import com.google.common.collect.Lists;
import com.google.common.collect.Sets;

import java.util.List;
import java.util.Set;

/**
 * Created on 2017/4/3.
 * <p>
 * <p><a href="http://wiki.jikexueyuan.com/project/google-guava-official-tutorial/powerful-collections-toolsmd.html">强大的集合工具类：java.util.Collections 中未包含的集合工具</a></p>
 *
 * @author XCH
 */
public class Utilities {

    public static void main(String[] args) {

    }

    private static void lists(){
        List<String> list = Lists.newArrayList();
        list = Lists.newArrayList("a", "b");

        Set<String> set = Sets.newHashSet();

        List<String> exactly100= Lists.newArrayListWithCapacity(100);
        List<String> approx100 = Lists.newArrayListWithExpectedSize(100);
        Set<String> approx100Set = Sets.newHashSetWithExpectedSize(100);
    }

    private static void iterables(){

    }


}
